#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int nums[1000];
	int n;
	cin >> n;
	int i;
	for (i = 0;i < n;i++)
	{
		cin >> nums[i];
	}
	int num;
	cin >> num;
	int sum = count(nums, nums+i, num);
	//int *sum1 = find(nums, nums + i, num);


	cout << sum;
	return 0;
}